newGT_path='./NewGT/';
NewImage_path='./NewImage/';
gt_path='./gt_training_lowres/';
image_path='./input_training_lowres/';
bg_path='./Background/';

counter=1;
image_amount=length(dir(gt_path))-2;
background_amount=length(dir(bg_path))-2;
for i=1:image_amount
    Number=num2str(i);
    if i<10
        Number=strcat('0',Number);
    end
    gt_name=strcat(gt_path,'GT',Number,'.png');
    alpha=imread(gt_name);
    for j=1:background_amount
        newName=strcat(newGT_path,num2str(counter),'.png');
        imwrite(alpha,newName);
        counter=counter+1;
    end
end